package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 入库表
 * </p>
 *
 * @author adrian
 * @since 2023-09-08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sto_import_base")
@ApiModel(value = "StoImportBase对象", description = "入库表")
public class StoImportBase implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("入库id")
    @TableId(value = "imp_id", type = IdType.INPUT)
    private String impId;

    @ApiModelProperty("发货id")
    private String expId;

    @ApiModelProperty("仓库ID/order_id(现场扫码收货)")
    private String stoId;

    @ApiModelProperty("创建者（入库人员）")
    private String creator;

    @ApiModelProperty("收货类型")
    private String receivingType;

    @ApiModelProperty("更新者")
    private String updater;

    @ApiModelProperty("收货照片")
    private String receivedImages;

    @ApiModelProperty("0-暂存，1-确认收货")
    private Byte state;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("扩展信息")
    private String expendInfo;

    @ApiModelProperty("创建时间(入库时间)")
    @TableField(fill = FieldFill.INSERT)
    private Timestamp createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;
}
